{% extends 'user/center_base.html' %}
{% block info %}
  <form action="" method="post">
                    {% csrf_token %}
                    <div class="form-group">
                        {{ forms.old_password.label_tag }}
                        {{ forms.old_password }}
                    </div>
                    <div class="form-group">
                        {{ forms.new_password.label_tag }}
                        {{ forms.new_password }}
                    </div>
                    <div class="form-group">
                        {{ forms.new_password_replace.label_tag }}
                        {{ forms.new_password_replace }}
                    </div>
                    {% if request.method == "POST" %}
                    {% for fields in forms %}
                    {% for error in fields.errors %}
                    {% if error %}
                    <p class="text-danger"> {{ error }} </p>
                    {% endif %}
                    {% endfor %}
                    {% endfor %}
                    {% endif %}

                    <button type="submit" class="btn btn-primary">确认修改</button>
                </form>

{% endblock %}